package com.zoe.onelink.business.param.impl.dict.impl;

import com.zoe.onelink.business.cache.bean.IParamEntity;
import com.zoe.onelink.business.param.impl.dict.DictBizParamResolver;
import com.zoe.onelink.business.service.ParamService;
import lombok.RequiredArgsConstructor;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2022</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2022-10-28
 */
@RequiredArgsConstructor
public class DatabaseDictBizParamResolver implements DictBizParamResolver {

    private final ParamService paramService;

    @Override
    public IParamEntity resolve(String paramName) {
        return this.paramService.getBizParamValueInDB(paramName);
    }
}
